﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="monitor_2_DBwork" namespace ="monitor_2_DBwork" >
  <class name="DeviceLog" table="Devicelog" >
    <id name ="Id" column ="Id" type ="int" generator="native"/>
    <property name="Severity" type="string(20)"/>
    
    <!--unique-->
    <property name="Name" type ="string(100)"/>
    <property name="DevId" column="Devid"/>
    <property name="Time"/>
    <!--unique-->

    <property name="Source" type="30"/>
    <property name="Details" type="string(100)"/>
    
    
    
    <many-to-one name="Device" class="Devices" lazy="false" column="Devid"
                 cascade="all" insert="false" update="false" not-null="true"/>

  </class>
</hibernate-mapping>
